<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <meta http-equiv='X-UA-Compatible' content='ie=edge'>
    <title>Document</title>
</head>

<body>
    <div id='app'>
        <!-- v-if有较高的频繁切换消耗,v-show有较高的初始渲染消耗 -->
        <div v-if='score>=90'>优秀</div>
        <div v-else-if='score<90&&score>=80'>良好</div>
        <div v-else-if='score<80&&score>=60'>一般</div>
        <div v-else>比较差</div>
        <br>
        <br>
        <div v-show='score>=90'>优秀</div>
        <div v-show="score<90&&score>=80">良好</div>
        <div v-show='score<80&&score>=60'>一般</div>
        <div v-show='score<60'>比较差</div>
        <div v-show='flag'>测试v-show</div>
    </div>
    <script src='../js/vue.js'></script>
    <script>
        /*
           分支结构
           v-show的原理：控制元素样式是否显示 display:none
        */
        const vm = new Vue({
            el: '#app',
            data: {
                score: 59,
                flag: true
            },
            methods: {},
        })
    </script>
</body>

</html>